package com.cfushn.ddd;

import cn.hutool.extra.spring.SpringUtil;
import com.cfushn.ddd.catchlog.EnableDDDCatch;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * BaseAutoConfiguration
 *
 * @author CFuShn 2023/3/28 19:24
 */
@Configuration
@EnableDDDCatch // 开启日志捕获
public class BaseAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(SpringUtil.class)
    SpringUtil springUtil() {
        return new SpringUtil();
    }

}
